package fr.aracore.domotique.zapi.model.impl;

import fr.aracore.domotique.zapi.model.Sensor;

public class LevSensorDescriptor extends SensorDescriptor {

	@Override
	public String tag() {
		return "lev";
	}

	@Override
	public String libelle() {
		return "strength level";
	}

	@Override
	public String stateDescriptionForSensor(Sensor sensor) {
		int lcLvl=(int)(Double.parseDouble(sensor.value())*10);
		return (lcLvl/10.0)+"/5";
	}

}
